import request from '@/utils/request'

// 查询物料配置列表
export function listSinterMatter(query) {
  return request({
    url: '/stock/sinterMatter/list',
    method: 'get',
    params: query
  })
}

// 查询物料配置列表(分页)
export function pageSinterMatter(query) {
  return request({
    url: '/stock/sinterMatter/page',
    method: 'get',
    params: query
  })
}

// 查询物料配置详细
export function getSinterMatter(id) {
  return request({
    url: '/stock/sinterMatter/get/' + id,
    method: 'get'
  })
}

// 新增物料配置
export function addSinterMatter(data) {
  return request({
    url: '/stock/sinterMatter/add',
    method: 'post',
    data: data
  })
}

// 修改物料配置
export function updateSinterMatter(data) {
  return request({
    url: '/stock/sinterMatter/edit',
    method: 'post',
    data: data
  })
}

// 删除物料配置
export function delSinterMatter(id) {
  return request({
    url: '/stock/sinterMatter/remove/' + id,
    method: 'post'
  })
}
